package com.jiazhong.boot.jwt.test;

import com.jiazhong.boot.commons.bean.plus.User;
import com.jiazhong.boot.commons.util.JsonResult;
import com.jiazhong.boot.jwt.service.UserService;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
@Slf4j
public class App {
    @Resource
    private UserService userService;

    @Test
    public void a() {
        User user = new User();
        user.setUsername("熊辉");
        user.setPassword("123456");
        JsonResult result = userService.login(user);
        log.info("result:{}", result);
    }
}
